using System;
using System.Collections;
using System.Data.Linq.Mapping;
using System.Runtime.Serialization;
using Portal.Core.Helper;
using System.Linq;

namespace Portal.Data.Entity
{
	[Table(Name = "dbo.RoleUser"),Serializable, DataContractAttribute]
    public class RoleUser : BaseObject
	{

		#region Properties

		[ColumnAttribute(Name = "User_ID")]
		[DataMemberAttribute(Order = 1)]
		public int? UserID {get;set;}

		[ColumnAttribute(Name = "Role_ID")]
		[DataMemberAttribute(Order = 2)]
		public int? RoleID {get;set;}


		#endregion
		#region Methods
		public static RoleUser FindByPrimaryKey(object objectid)
		{
		    return FindByPrimaryKey<RoleUser>(objectid);
		}
		#endregion Methods

	}
}
